FROM rust:1-alpine

WORKDIR /readlaterbot
#ARG RUNTIME_USER=readlaterbot
#RUN adduser -D ${RUNTIME_USER}
#RUN mkdir -p /home/${RUNTIME_USER}; \
#    chown ${RUNTIME_USER}:${RUNTIME_USER} /home/${RUNTIME_USER}; \
#	chown ${RUNTIME_USER}:${RUNTIME_USER} /readlaterbot
RUN apk add yt-dlp
COPY . .
#RUN apt-get update && apt-get install -y youtube-dl
#RUN npm -g install @postlight/parser
#ENV MONGODB_URL=mongodb://127.0.0.1
#ENV TELEGRAM_BOT_TOKEN=527889390:AAGbVA0xtBjJ_XA_zD9i33XFtxErY4t_0UE
CMD ["/readlaterbot/bot_telegram"]
